#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/sem.h>

#ifndef _SEMNU_H
#define _SEMNU_H

    union semun {
               int              val;    /* Value for SETVAL */
               struct semid_ds *buf;    /* Buffer for IPC_STAT, IPC_SET */
               unsigned short  *array;  /* Array for GETALL, SETALL */
               struct seminfo  *__buf;  /* Buffer for IPC_INFO
                                           (Linux-specific) */
           };
#endif 
